package com.yunti.springboot.job.exception;


import com.yunti.springboot.job.AbstractQuartzJob;
import com.yunti.springboot.job.util.JobInvokeUtil;
import com.yunti.springboot.po.TaskJob;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

/**
 * 定时任务处理（禁止并发执行）
 *
 * @author icbc
 *
 */
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob
{
    @Override
    protected void doExecute(JobExecutionContext context, TaskJob sysJob) throws Exception
    {
        JobInvokeUtil.invokeMethod(sysJob);
    }
}
